package com.crm.service.customerManager;

import com.crm.model.entity.customerManager.CustomerReturn;
import com.crm.model.qo.customerManager.CustomerReturnQO;
import com.crm.model.vo.customerManager.CustomerReturnVO;

import java.util.List;

/**
 * @ Author ：pym
 * @ Date   ：2021/1/22 16:26
 */
public interface CustomerReturnDbService {

    /**
     * 新增一条客户退退回/释放记录
     * @param customerReturn
     * @return
     */
    int insertCustomerReturn(CustomerReturn customerReturn);

    /**
     * 同一客户释放或者收回的最新一条记录信息
     * @param customerId
     * @return
     */
    CustomerReturn selectCustomerReturnNew(String customerId);

    /**
     * 系统收回客户记录
     * @param moveCustomerQO
     * @param order
     * @return
     */
    List<CustomerReturnVO> getFollowPlanListByDate(CustomerReturnQO moveCustomerQO, StringBuilder order);

    /**
     * 修改回退状态
     * @param customerReturnId
     */
    void backCustomerReturn(String customerReturnId);
}
